<template>
  <div>
    <BaseModal @onSubmit="onSubmit" @onClose="onClose" :show="show" title="编辑镜像信息">
      <div class="demo-input-suffix">
        <span class="form-input-label">镜像名称：</span>
        <el-input v-model="image_name" placeholder="请输入镜像名称"></el-input>
        只支持中文、字母、数字或连接符号"-"
      </div>
    </BaseModal>
  </div>
</template>
<script>
import modalClose from "@/mixins/modalClose";
import { Message } from "element-ui";
export default {
  mixins: [modalClose],
  data() {
    return {
      image_name: ''
    };
  },
  methods: {
    onSubmit() {
      if (!this.image_name) {
        return Message.warning("请填完整信息");
      }
      this.$emit('onSubmit', this.image_name);
      
    },
    onClose() {
      this.$emit("onClose");
    }
  }
};
</script>
<style lang="scss">
</style>